/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.ac.ua.pats.thesisrobotica.robot.RR.sensors.listeners;

import be.ac.ua.pats.thesisrobotica.robot.RR.sensors.utils.InterrupterThread;
import lejos.nxt.SensorPort;
import lejos.nxt.SensorPortListener;

/**
 *
 * @author Admin
 */
public abstract class SensorListener extends Thread implements SensorPortListener {
    
    SensorPort port;
    long interval;
    long threshold;
    InterrupterThread interrupterThread;

    public SensorListener(SensorPort port,long interval,long threshold) {
        this.port = port;
        this.interval = interval;
        this.threshold = threshold;
        this.setDaemon(true);
        this.start();
    }

    @Override
    public void stateChanged(SensorPort aSource, int aOldValue, int aNewValue) {
    }

    
}
